package service.impl;

import java.sql.SQLException;
import java.util.List;

import module.Unit;
import domain.vo.queryObject;
import service.UnitService;
/**
 * 
* @ClassName: UnitServiceImpl 
* @Description: 小区服务层实现
* @author chenchao
* @date 2014年1月16日 下午1:08:31 
*
 */
public class UnitServiceImpl  extends UnitService{

	@Override
	public Unit getById(String id) throws SQLException {
		return unitDAO.getById(id);
	}

	@Override
	public List<Unit> getAll() throws SQLException {
		// TODO Auto-generated method stub
		return unitDAO.getAll();
	}

	@Override
	public void insertObject(Unit t) throws SQLException {
		// TODO Auto-generated method stub
		unitDAO.insertT(t);
	}

	@Override
	public void updateObject(Unit t) throws SQLException {
		// TODO Auto-generated method stub
		unitDAO.updateT(t);
	}

	@Override
	public void deleteT(int id) throws SQLException {
		// TODO Auto-generated method stub
		unitDAO.deleteT(id);
	}

	@Override
	public List<Unit> getObjectByQueryObject(queryObject queryObject)
			throws SQLException {
		// TODO Auto-generated method stub
		return unitDAO.getObjectByQueryObject(queryObject);
	}

	@Override
	public int countByQueryObject(queryObject queryObject) throws SQLException {
		// TODO Auto-generated method stub
		return unitDAO.countByQueryObject(queryObject);
	}

}
